﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Model;

namespace OgilvyOne.IDAL
{
    public interface IMemberPassBack
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(MemberPassBackModel model);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(MemberPassBackModel model);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="memberId"></param>
        /// <returns></returns>
        bool Delete(int memberId);
        /// <summary>
        /// 是否存在
        /// </summary>
        /// <param name="memberId"></param>
        /// <returns></returns>
        bool Exist(int memberId);
        /// <summary>
        /// 获得model
        /// </summary>
        /// <param name="memberid"></param>
        /// <returns></returns>
        MemberPassBackModel Getmodel(int memberid);
    }
}
